const { gql } = require('apollo-server-express');

exports.typeDefs = gql`
  input UserInfo {
    username: String
    password: String
  }
  type User {
    id: Int
    username: String
    password: String
  }
  type Query {
    getUserList: [User]
    getUserInfo(id: Int): User
    getVersion: String
  }
  type Mutation {
    addUser(user: UserInfo): User
  }
`;
